import { ApiProperty } from '@nestjs/swagger';
import { IsNumber, IsOptional, IsString, IsBoolean } from 'class-validator';

export class CreateHomeMediaDto {
  @ApiProperty({ description: '文件ID' })
  @IsNumber()
  fileId: number;

  @ApiProperty({ description: '排序' })
  @IsNumber()
  order: number;

  @ApiProperty({ description: '备注', required: false })
  @IsString()
  @IsOptional()
  remark?: string;

  @ApiProperty({ description: '是否展示', default: true })
  @IsBoolean()
  @IsOptional()
  isDisplayed?: boolean;
}
